#ifndef READHOLDREGISTERCMD_H
#define READHOLDREGISTERCMD_H


#include <QObject>
#include "BaseModbusCmd.h"
#include "Protocol/ModbusProtocol.h"
#include "DataType/ModbusControlStruct.h"

class ReadHoldRegisterCmd : public BaseModbusCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = ModbusProtocol::ReadHoldRegister};

    Q_INVOKABLE explicit ReadHoldRegisterCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

};

#endif // READHOLDREGISTERCMD_H
